package demo.android.com.mvpdemo.myRetrofit;


/**
 * Created by Vya on 2018/2/2 0002.
 */

public interface Callback<T> {

    void onResponse(Call<T> call, Response<T> response);

    /**
     * Invoked when a network exception occurred talking to the server or when an unexpected
     * exception occurred creating the request or processing the response.
     */
    void onFailure(Call<T> call, Throwable t);
}
